import React from "react"
import {createInitialization} from "@/micro/createInitialization";

/**
 * 初始化Store应用
 * @author  韦胜健
 * @date    2021/4/22 14:48
 */
export const initStoreApplication = createInitialization({
    appName: 'MANAGER',
    getNavigatorConfig: () => ({
        storageKey: 'SYS_MANAGER',
        tabIdGenerator: config => config.path,
        showPathInUrl: true,
    }),
    getHomeRender: async () => {
        const {StoreHome} = (await import('./home/StoreHome'))
        return () => <StoreHome/>
    },
    getLoginRender: async () => {
        const {StoreLogin} = (await import('./login/StoreLogin'))
        return () => <StoreLogin/>
    },
})